'''
Description: 
Autor: didiplus
Date: 2023-01-13 10:18:07
LastEditors: lin
LastEditTime: 2023-01-13 14:15:14
'''

import requests
from bs4 import BeautifulSoup

urls = [
    "https://www.cnblogs.com/#p{}".format(page)
    for page in range(1,51)
]

def craw(url):
    r =requests.get(url)
    return r.text



def parse(html):
    soup = BeautifulSoup(html,"html.parser")
    links = soup.find_all('a',class_="post-item-title")
    return [ (link['href'],link.get_text())  for link in links]


if __name__ == "__main__":
    pass